package com.forgenet.login;

import com.forgenet.login.config.LoginConfig;
import com.sparrow.common.util.PropertiesUtil;
import com.sparrow.socket.util.PacketHelper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class LoginMain {
    private static final Logger logger = LoggerFactory.getLogger(LoginMain.class);

    public static void main(String[] args) {
        PacketHelper.init("com.forgenet.message");
        PropertiesUtil.load("server.properties");
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
        context.register(LoginConfig.class);
        context.refresh();
        logger.info("登录服启动");
    }
}
